package 传智播客_黑马.java基础.Thread类;

public class 实用类 {
    public static void main(String[] args) {
        LearnThread类 ab = new LearnThread类();
        Thread ac = new Thread(ab);
        学习Thread as = new 学习Thread();

        ac.start();
        System.out.println(ac.getName());
        as.start();
        System.out.println(as.getName());

//        run();
    }

    static void run(){
        for (int i = 0; i < 100; i++) {
            System.out.println(i);
        }
    }
}
